package com.tao.config;

import org.springframework.amqp.core.*;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@Configuration
public class RabbitmqConfig {

//    @Bean("userQueue")
//    public Queue userQueue() {
//        return QueueBuilder.durable("userQueue").build();
//    }
//    @Bean("userExchange")
//    public Exchange userExchange() {
//        return ExchangeBuilder.directExchange("userExchange").durable(true).build();
//    }
//
//    @Bean("userBinding")
//    public Binding userBinding(@Qualifier("userQueue") Queue userQueue, @Qualifier("userExchange")Exchange userExchange) {
//        return BindingBuilder.bind(userQueue).to(userExchange).with("blog").noargs();
//    }
}
